<link rel="stylesheet" href="<?php echo APP_TEMPLATES_URL;?>/css/checkbix.min.css" />
<link rel="stylesheet" href="<?php echo APP_TEMPLATES_URL;?>/css/public.css" />
<script src="<?php echo APP_TEMPLATES_URL;?>/js/checkbix.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	Checkbix.init();
	
	
	$(function(){
		// 所有复选(:checkbox)框点击事件
				$("input[name=boxlist]").click(function() {
					    $("input[name=boxlist]").each(function() {
							$(this).attr("checked", false);
						});
						$(this).attr("checked", true);
						var sex = $(this).val();
						var t = "wap";
						$.ajax({
							type : "post",
							url :  "<?php echo APP_SITE_URL;?>/index.php?act=member&op=setsexval",
							data : {
								member_id : <?php echo $_SESSION['member_id'];?>,
								sex : sex,
								client : t
							},
							dataType : "json",
							success : function(e) {
								a = true;
								if (!e.datas.error) {
									if (typeof e.datas.key == "undefined") {
										return false
									} else {
										var i = 0;
										location.href = 'index.php?act=member&op=profile';
									}
								} else {
									alert(e.datas.error)
								}
							}
						})
				});
				
	 $("input[name=boxlist][value='<?php echo $output['member_info']['member_sex'];?>']").attr("checked", true);
	});
	
	            
</script>

<style>
	body,
	html {
		background: #F4F4F4 !important;
	}
	
	.indexm {
		display: none;
	}
</style>
<!-- 导航 -->
<div class="mui-bar mui-bar-nav bj">
    <a href="<?php echo urlApp('member','profile'); ?> ">
	<button id="zhuce" class="mui-btn mui-btn-link mui-btn-nav mui-pull-left zys">
				<img style=" max-width: 70%; vertical-align: middle;" src="<?php echo APP_TEMPLATES_URL;?>/images/back.png" />
			</button></a>


	<h1 class="mui-title"><label style="font-size: 18px;vertical-align: middle; line-height: 44px;">性别</label></h1>
</div>
<!-- 主体内容 -->
<section>
	<ul class="across">
		<li class="side">
			<div class="countone notone">
				<a href="#">
					<label>男</label>
					<label style="text-align: right; color: #999;">
									<input id="mycheckbox3" type="checkbox" class="checkbix" data-shape="circled" name="boxlist" data-color="orange" data-text="" value="1">
								</label>
				</a>
			</div>
		</li>
		<li class="side">
			<div class="countone notone">
				<a href="#">
					<label>女</label>
					<label style="text-align: right; color: #999;">
									<input id="mycheckbox4" type="checkbox" class="checkbix" data-shape="circled" name="boxlist" data-color="orange" data-text="" value="0">
								</label>
				</a>
			</div>
		</li>
		<li class="side">
			<div class="countone notone">
				<a href="#">
					<label>保密 </label>
					<label style="text-align: right; color: #999;">
									<input id="mycheckbox5" type="checkbox" <?php if($output['member_info']['member_sex']==null)echo 'checked';?> class="checkbix" data-shape="circled" name="boxlist" data-color="orange" data-text="" value="null">
								</label>
				</a>
			</div>
		</li>
	</ul>
</section>